const express = require('express');
let db = require('../db/db');
let router = express.Router();

router.use('/article',(req,res)=>{
    let sql = 'select * from blog_article';
    db.query(sql).then((data)=>{
        res.send({article:data});
    })
})

module.exports = router;
